package org.test.testapi.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Calendar;

/**
 * @author xlang
 * @version 0.0.1
 * @desciption
 * @date 2020/9/5 10:47
 */
@Component
public class MinutesTask {

    Logger logger = LoggerFactory.getLogger(MinutesTask.class);

//    @Async
//    @Scheduled(cron = "0 * * * * *")
    public void minute() {
        logger.info("time: {}", Calendar.getInstance().getTime());
    }

}
